const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    name: { type: String },
    icon: {
        type: String
    },
    addition: {
        attack_power: { type: Number },  // 攻击力
        spell_power: { type: Number },   // 法强
        life_value: { type: Number },    // 生命
        spell_value: { type: Number },   // 蓝
        physical_defense: { type: Number },  // 护甲
        spell_defense: { type: Number },  // 魔抗
        attack_speed: { type: Number },  // 攻速
        moving_speed: { type: Number },  // 移速
        crit: { type: Number },  // 暴击
        cool: { type: Number },  // 冷却
    },
    description: { type: String }

})

module.exports = mongoose.model('Equip', schema)
